<?php
/**
 * Created by PhpStorm.
 * User: changshuiwang
 * Date: 2016/7/11
 * Time: 15:00
 */

use yii\grid\GridView;
use yii\data\ActiveDataProvider;
use yii\helpers\Html;

echo "11";
echo GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        'id',
        'username',
        'score',
        [
            'class' => 'yii\grid\ActionColumn',
            'header' => '操作',
            'template' => '{delete}{update}',
        ],
    ]
]);
?>
